import request from '@/utils/request'

export function currentData() {
  return request({
    url: '/camera/current',
    method: 'get'
  })
}

export function countData() {
  return request({
    url: '/camera/count',
    method: 'get'
  })
}
export function lastWeekData() {
  return request({
    url: '/camera/lastWeek',
    method: 'get'
  })
}
export function helmetSignData(data) {
  return request({
    url: '/camera/helmetSign',
    method: 'get',
    params: data
  })
}
export function latestTenData() {
  return request({
    url: '/camera/latestTen',
    method: 'get'
  })
}
export function barChartData(data) {
  return request({
    url: '/attendance',
    method: 'get',
    params: data
  })
}
export function barChartTeamData() {
  return request({
    url: '/attendance/team',
    method: 'get'
  })
}
export function attendanceCountData(data) {
  return request({
    url: '/attendance/attendanceCount',
    method: 'get',
    params: data
  })
}
export function notLeaveData(data) {
  return request({
    url: '/attendance/notLeave',
    method: 'get',
    params: data
  })
}
export function cycleListData(data) {
  return request({
    url: '/attendance/cycleList',
    method: 'get',
    params: data
  })
}
export function summaryData() {
  return request({
    url: '/attendance/summary',
    method: 'get'
  })
}
